package com.lagou.rpc.common;

import lombok.Data;

@Data
public class ServiceInfo {
    private String ip;
    private int port;
    private long requestTimestamp = 0;
    private long responseDuration = 0;

    public ServiceInfo(String ip, int port) {
        this.ip = ip;
        this.port = port;
    }

    public ServiceInfo(String ip, int port,long requestTimestamp,long responseDuration) {
        this.ip = ip;
        this.port = port;
        this.requestTimestamp = requestTimestamp;
        this.responseDuration = responseDuration;

    }


}
